package com.fanpan26.springboot.annotation.qualifier;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SpringBootAnnotationQualifierApplication {

	public static void main(String[] args) {
		ApplicationContext applicationContext = SpringApplication.run(SpringBootAnnotationQualifierApplication.class, args);
		applicationContext.getBean(TestBean.class).test();
	}

	@Bean
	public  TestBean testBean(){
		return new TestBean();

	}
}
